#ifndef HISTORY_H
#define HISTORY_H

#include <QWidget>
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QTableWidgetItem>
#include <QTimer>
#include <QStringList>

namespace Ui {
class History;
}

class History : public QWidget
{
    Q_OBJECT

public:
    explicit History(QWidget *parent = 0);
    ~History();
signals:
    void openCountSignal();

public slots:
    void updatetableInfo();
    void receiveDBSlots(QSqlDatabase db);

private slots:
    void on_pushButton_clicked();

    void on_m_updat_clicked();

private:
    Ui::History *ui;
    QSqlDatabase m_db;
    QSqlQuery* m_query;
    QTimer* timer;
};

#endif // HISTORY_H
